//
// Created by DELL on 2025/2/5.
//

#ifndef THREAD_H
#define THREAD_H
#include <functional>

namespace zdotp {

class Thread {
public:
    using ThreadHandler = std::function<void(int)>;

    Thread(ThreadHandler handler);
    ~Thread();

    void start();

    int get_thread_id() const;
private:
    ThreadHandler handler_;
    static int generate_id;
    int thread_id_;
};

} // zdotp

#endif //THREAD_H
